package com.winit.openapi.exception;

import com.winit.common.error.WinitException;

/**
 * API异常类
 * 
 * @version Revision History
 * 
 * <pre>
 * Author     Version       Date        Changes
 * kang.wang    1.0           2014-10-21     Created
 * 
 * </pre>
 * @since 1.
 */
public class ValidationException extends WinitException {

    private static final long serialVersionUID = 8902273388707200073L;

    private String            code;
    private String            msg;

    public ValidationException(){
        super();
        // TODO Auto-generated constructor stub
    }

    public ValidationException(String code, String msg){
        super();
        this.code = code;
        this.msg = msg;
    }

    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @return the msg
     */
    public String getMsg() {
        return msg;
    }

    /**
     * @param msg the msg to set
     */
    public void setMsg(String msg) {
        this.msg = msg;
    }

}
